package megrez.bussiness.system.web.dto;

import lombok.Getter;
import lombok.Setter;
import megrez.common.jpa.AbstractIdAuditingDto;

/**
 * 部门传输对象
 * 
 * @author Lucky Yang
 * @since 0.0.1
 */
@Getter
@Setter
public class DeptDto extends AbstractIdAuditingDto  {
    /**
     * 代码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 启用
     */
    private Boolean enabled;

    /**
     * 排序
     */
    private Integer orderNo;

    /**
     * id路径
     */
    private String pathCode;

    private Boolean isLeaf;
    
    public DeptDto() {
    }

    public DeptDto(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public DeptDto(String name, Boolean enabled, Integer orderNo) {
        this.name = name;
        this.enabled = enabled;
        this.orderNo = orderNo;
    }

    
}
